package cn.xuexiyuan.springdatamongodemo.user.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Description:
 * @Author 左龙龙
 * @Date 20-1-14
 * @Version 1.0
 **/
@Data
@Document(collection = "user")
public class User {
    private String name;
    private String passwd;
    private String email;
    private String phone;
    private int status;


    public interface Status{
        int Normal = 0;
        int Disable = 1;
    }

}
